﻿<%@ Page Language="C#" AutoEventWireup="true"  ValidateRequest="false"  CodeFile="插入数据专用.aspx.cs" Inherits="插入数据专用" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>right</title>
<link href="css/right.css" rel="stylesheet" type="text/css" />
     <link href="kindeditor/plugins/code/prettify.css" rel="stylesheet" type="text/css" />
    <script src="kindeditor/lang/zh_CN.js" type="text/javascript"></script>
    <script src="kindeditor/kindeditor.js" type="text/javascript"></script>
    <script src="kindeditor/plugins/code/prettify.js" type="text/javascript"></script>  
    <script type="text/javascript">
        KindEditor.ready(function (K) {
            var editor = K.create('#content', {
                //上传管理
                uploadJson: 'kindeditor/asp.net/upload_json.ashx',
                //文件管理
                fileManagerJson: 'kindeditor/asp.net/file_manager_json.ashx',
                allowFileManager: true,
                //设置编辑器创建后执行的回调函数
                afterCreate: function () {
                    var self = this;
                    K.ctrl(document, 13, function () {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                    K.ctrl(self.edit.doc, 13, function () {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                },
                //上传文件后执行的回调函数,获取上传图片的路径
                afterUpload: function (url) {
                    alert(url);
                },
                //编辑器高度
                width: '790px',
                //编辑器宽度
                height: '290px;',
                //配置编辑器的工具栏
                items: [
                'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
                'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
                'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
                'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
                'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
                'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
                'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
                'anchor', 'link', 'unlink', '|', 'about'
                ]
            });
            prettyPrint();
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
    <div class="top1">
    </div>
    <div class="message">
      <div class="top2">
        <p>老师信息</p>
      </div>
      <div class="message1">
          
        </div>
          <p>请选择图片：<asp:FileUpload ID="FileUpload1" runat="server" /></p>
          <p class="sp1">新老师名字：<asp:TextBox ID="TextBox2" runat="server" type="text" class="sp1"></asp:TextBox>
            
          </p>
           
          <p class="sp1">性别：<asp:DropDownList ID="DropDownList2" runat="server">
              <asp:ListItem></asp:ListItem>
              <asp:ListItem>男</asp:ListItem>
              <asp:ListItem>女</asp:ListItem>
              </asp:DropDownList></p>
          <P class="sp1">职称：<asp:TextBox ID="TextBox4" runat="server" type="text" class="sp1" Width="67px"></asp:TextBox></p>
            
          <p class="sp1">民族：<asp:TextBox ID="TextBox1" runat="server" Width="59px"></asp:TextBox>
          <p>籍贯：<asp:TextBox ID="TextBox6" runat="server" type="text" class="sp1" Width="92px"></asp:TextBox>&nbsp; 专业：<asp:TextBox ID="TextBox3" runat="server" type="text" class="sp1" Width="92px"></asp:TextBox>&nbsp;&nbsp; 替换老师的名字：<asp:TextBox ID="TextBox5" runat="server" type="text" class="sp1" Width="92px"></asp:TextBox>&nbsp; <asp:Image ID="Image1" runat="server" Height="77px" Width="89px" /></p>
       
      </div>
    </div>
    <div class="bjtext">
      <div class="bjt">
      <p>发布老师信息</p>
        <div>

            <asp:TextBox ID="content" runat="server" TextMode="MultiLine"></asp:TextBox> 
          
        </div> 
          <div> 
             <asp:Button ID="Button1"  runat="server" Text="确认" OnClick="Button1_Click"/>
              </div>
      </div>     
    </div>      
  </div>      
    </form>
</body>
</html>

    </form>
</body>
</html>
